package com.datacow.modules.climbingdata.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.datacow.modules.climbingdata.domain.entity.ProductHuntEnEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


/**
 * @Description:
 * @Author: 李德森
 * @Date: 2021/1/14
 */
@Repository
@Mapper
public interface ProductHuntEnDao extends BaseMapper<ProductHuntEnEntity> {
    /**
     * @param md5Url md5加密后的url
     * @Description 通过md5Url查询网站链接
     */
    @Select("select * from datacow_product_hunt_en where md5_url = #{md5Url}")
    ProductHuntEnEntity selectByMd5Url(@Param("md5Url") String md5Url);

}
